import request from '@/utils/request'

export function problemList(id) {
  return request({
    url: '/api/admin/checkProblem/problemList/' + id,
    method: 'get'
  })
}


export function addProbliem(obj) {
  return request({
    url: '/api/admin/checkStandard',
    method: 'post',
    data: obj
  })
}


// 新增五级
export function addFireCheckDetailed(obj) {
  return request({
    url: '/api/admin/checkProblem/addDetailed',
    method: 'post',
    data: obj
  })
}

// 展示五级列表
export function pagePlaceProblem(query) {
  return request({
    url: '/api/admin/checkProblem/page',
    method: 'get',
    params: query
  })
}


export function getDetails(id) {
  return request({
    url: `/api/admin/details/selectDetail/${id}`,
    method: 'POST'
  })
}


export function deleteDetails(id) {
  return request({
    url: `/api/admin/details/${id}`,
    method: 'DELETE'
  })
}

export function updateProblem(id, obj) {
  return request({
    url: `/api/admin/details/${id}`,
    method: 'PUT',
    data: obj
  })
}
